#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main () {
 srand(time(0));
 double val = (double)rand() / ((double)RAND_MAX + (double)1);
 printf("Rand: %.9f\n", val);
 return 0;
}

